package com.knowswift.common.bean.issue.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;


@Data
@TableName(autoResultMap = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Issue {
    @TableId
    private String issueId;
    private String moduleName;
    private String projectName;
    private String issueClassify;
    private String issueArea;
    private String issueCode;
    private Double issueLatitude;
    private Double issueLongitude;
    private String remark;
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<String> issueImages;
    private String primaryImage;
    private String createUserId;
    private String reporterName;
    private Integer issueStatus;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime reportTime;
    private String auditUserId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime auditTime;
    private String deviceId;
    @JsonIgnore
    private Integer isDelete;
    @JsonIgnore
    private LocalDateTime createTime;
    @JsonIgnore
    private LocalDateTime updateTime;
}
